<template>
	<view>
		<view class="title">
			<view class="text">{{string.title}}</view>
			<view class="x"></view>
		</view>
		<view class="content">
			<rich-text :nodes="string.content"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				string:''
			}
		},
		onLoad() {
			this.getContent();
		},
		methods: {
			getContent:function(){
				this.$show();
				this.$http.post('index/article',{
					id:'35'
				}).then((res)=>{
					this.$hide()
					this.string = res.data.article;
				})
			},
		}
	}
</script>

<style lang="scss">
page{
}
.title{
	padding: 20upx 30upx;
	.text{
		font-weight: bold;
	}
	.x{
		width: 50upx;
		height: 6upx;
		background-color: $uni-color;
		border-radius: 10upx;
		margin-top: 10upx;
	}
}
.content{
	line-height: 45upx;
	font-size: 24upx;
	padding: 30upx;
}
</style>
